<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<table width="100%" border="0" cellspacing="0" cellpadding="0"
	class="ftable">
	<tbody>
		<tr>
			<th width="16%" align="left">订单号</th>
			<th width="10%">姓名</th>
			<th width="12%">订单金额</th>
			<th width="11%">下单时间</th>
			<th width="10%">状态</th>
			<th width="12%">操作</th>
		</tr>
		<c:choose>
			<c:when test="${list.size()>0 }">
				<c:forEach var="vo" items="${list }">
					<tr>
						<td>${vo.orderSn }</td>
						<td align="center">${vo.userName }</td>
						<td align="center"><strong>￥${vo.totalMoney }</strong><br></td>
						<td align="center"><f:formatDate value="${vo.addTime }"
								pattern="yyyy-MM-dd HH:mm:ss" /></td>
						<td align="center"><c:choose>
								<c:when test="${vo.shopState eq 0 }">未支付</c:when>
								<c:when test="${vo.shopState eq 1 }">已支付,未确认</c:when>
								<c:when test="${vo.shopState eq 2 }">已确认，已发货</c:when>
								<c:when test="${vo.shopState eq -1 }">已取消</c:when>
							</c:choose></td>
						<td align="center"><a
							href="${pathUrl }/home/center/orderDetail?id=${vo.id}">查看订单</a><br>
						</td>
					</tr>
				</c:forEach>
			</c:when>
			<c:otherwise>
				<tr>
					<td colspan="7">暂无数据</td>
				</tr>
			</c:otherwise>
		</c:choose>

	</tbody>
</table>
<input type="hidden" id="pageNum" name="pageNum" value="${pageNum }" />
<input type="hidden" id="pages" name="pages" value="${pages }" />
<input type="hidden" id="total" name="total" value="${total }" />
<input type="hidden" id="pageSize" name="pageSize" value="${pageSize }" />